package com.project.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.bean.RecordBean;
import com.project.service.IRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("Record")
public class RecordController {
    @Autowired
    private IRecordService IRecordService;

    /**
     * 动态条件分页查询所有库存记录表
     *
     * @param pageNO 页码
     * @param status 库存记录状态
     * @return
     */
    @GetMapping("findRecordAll")
    IPage<RecordBean> findRecordAll(int pageNO, String status) {
        return IRecordService.findRecordAll(pageNO,status);
    }
}
